﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:UserControls="clr-namespace:MyRecipeBook.V2.UI.UserControls"
	xmlns:CustomControls="clr-namespace:MyRecipeBook.V2.UI.CustomControls"
	x:Class="MyRecipeBook.V2.UI.Windows.WindowMain"
	x:Name="Window"
	Title="My Recipe Book" 
    Background="{DynamicResource window_background}"
    Width="863" Height="644" FontFamily="{DynamicResource application_fontfamily}">
	<Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/MyRecipeBook.V2.UI;Component/Themes/DefaultDictionary.xaml"/>
            </ResourceDictionary.MergedDictionaries>        	
        </ResourceDictionary>
    </Window.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" /> <!-- Title -->
            <RowDefinition /> <!-- The Rest -->
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            
            <TextBlock Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Text="My Recipe Book" Foreground="{DynamicResource window_heading_foreground}" FontSize="{DynamicResource window_heading_size}" FontWeight="{DynamicResource window_heading_fontweight}" Margin="{DynamicResource window_heading_margin}" VerticalAlignment="{DynamicResource window_heading_valign}" HorizontalAlignment="{DynamicResource window_heading_halign}" Background="{DynamicResource window_heading_background}" FontFamily="{DynamicResource window_heading_fontfamily}" />
            
            <UserControls:TimeView Grid.Column="1" Grid.Row="0" HorizontalAlignment="{DynamicResource window_time_halign}" VerticalAlignment="{DynamicResource window_time_valign}" Margin="{DynamicResource window_time_margin}" />
            <UserControls:DateView Grid.Column="1" Grid.Row="1" VerticalAlignment="{DynamicResource window_date_valign}" HorizontalAlignment="{DynamicResource window_date_halign}" Margin="{DynamicResource window_date_margin}" />
		</Grid>
        
		<Grid Grid.Row="1">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition />
			</Grid.ColumnDefinitions>
			
			<StackPanel Grid.Column="0" Margin="{DynamicResource window_main_menu_margin}">		
				<CustomControls:OptionView Caption="Menus" MouseLeftButtonUp="OptionView_MouseLeftButtonUp" />
        		<CustomControls:OptionView Caption="Recipes" MouseLeftButtonUp="OptionView_MouseLeftButtonUp"  />
        		<CustomControls:OptionView Caption="Ingredients" MouseLeftButtonUp="OptionView_MouseLeftButtonUp"  />
		        <CustomControls:OptionView Caption="Search" MouseLeftButtonUp="OptionView_MouseLeftButtonUp"  />
        		<CustomControls:OptionView Caption="Definitions" MouseLeftButtonUp="OptionView_MouseLeftButtonUp"  />
                <CustomControls:OptionView Caption="Options" MouseLeftButtonUp="OptionView_MouseLeftButtonUp"  />
                <CustomControls:OptionView Caption="Help" MouseLeftButtonUp="OptionView_MouseLeftButtonUp"  />
				<CustomControls:OptionView x:Name="optionViewDebug" Visibility="Collapsed" Caption="Debug" MouseLeftButtonUp="OptionView_MouseLeftButtonUp"  />
                <CustomControls:OptionView x:Name="optionViewExit" Caption="Exit" MouseLeftButtonUp="optionViewExit_MouseLeftButtonUp" />
            </StackPanel>
			
            <Frame x:Name="framePage" Grid.Column="1" NavigationUIVisibility="Hidden" Margin="{DynamicResource window_main_frame_margin}" />
		</Grid>
        
        <TextBlock Grid.Row="2" Text="(c) 2009 Graeme Gorman. All Rights Reserved" Foreground="{DynamicResource window_copyright_foreground}" Margin="{DynamicResource window_copyright_margin}" FontSize="{DynamicResource window_copyright_fontsize}" FontFamily="{DynamicResource application_fontfamily}" HorizontalAlignment="{DynamicResource window_copyright_halign}" VerticalAlignment="{DynamicResource window_copyright_valign}" FontWeight="{DynamicResource window_copyright_fontweight}" /> 
    </Grid>
</Window>